﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Top.Api;
using Top.Api.Request;
using Top.Api.Response;

namespace Tibus.WeixinWeb
{
    public class Alidayu
    {
        public static bool SendRegisterCode(string mobile,string code)
        {
            ITopClient client = new DefaultTopClient("http://gw.api.taobao.com/router/rest", "23357154", "d6041a761686860e339a4f689c103811");
            AlibabaAliqinFcSmsNumSendRequest req = new AlibabaAliqinFcSmsNumSendRequest();
            req.SmsType = "normal";
            req.SmsFreeSignName = "注册验证";
            req.SmsParam = "{\"code\":\""+code+"\",\"product\":\"【桂乡田源】\"}";
            req.RecNum = mobile;
            req.SmsTemplateCode = "SMS_7770270";
            AlibabaAliqinFcSmsNumSendResponse rsp = client.Execute(req);
            return true;
        }
        

        
    }
}